@import (reference) "~weaver-mobile/dist/weaver-mobile.less";
@wmSharePrefixCls: wm-share;

.@{wmSharePrefixCls} {
  &-em {
    height: 28 * @hd;
    line-height: 28 * @hd;
    color: @color-text-base-inverse;
    background: @color-text-caption;
    text-align: center;
  }
  &-chat {
    background: @fill-body;
    &-left {
      display: inline-block;
      width: 24 * @hd;
      height: 24 * @hd;
      background: @brand-primary;
      vertical-align: middle;
      text-align: center;
      border-radius: @radius-md;
      &-choose {
        background: #55ce7d;
      }
      &-dept {
        background: #896bef;
      }
      &-subcom {
        background: #108ee9;
      }
      .am-icon-md {
        width: 16 * @hd;
        height: 16 * @hd;
        vertical-align: top;
        padding-top: 4 * @hd;
        color: @color-text-base-inverse;
      }
    }
    &-item {
      height: 44 * @hd;
      .wm-browser {
        background: transparent;
      }
    }
    &-list {
      position: absolute;
      top: @search-bar-height + 117 * @hd;
      bottom: 0;
      width: 100%;
      background: @fill-base;
      overflow-y: scroll;
      -webkit-overflow-scrolling: touch;
      .wm-list-page-modal-nodata .am-result {
        padding-top: 35%;
      }
      .wm-list-page-modal {
        padding-bottom: 0;
      }
    }
    .wm-share-list-right {
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  }
  &-group {
    background: @fill-body;
    &-list {
      position: absolute;
      top: @search-bar-height * @hd;
      bottom: 0;
      width: 100%;
      background: @fill-base;
      .wm-list-view-page-modal-nomore {
        padding-top: 10 * @hd;
      }
      .wm-share-list {
        &:last-child {
          border: 0;
        }
      }
    }
  }
  &-latest {
    height: 28 * @hd;
    line-height: 28 * @hd;
    color: @color-text-placeholder;
    padding-left: @v-spacing-lg;
  }
  &-list {
    position: relative;
    height: 45 * @hd;
    overflow: hidden;
    margin-left: 15 * @hd;
    padding: 7 * @hd 0;
    border-bottom: @border-width-sm solid @border-color-base;
    &-left {
      display: inline-block;
      width: 45 * @hd;
      height: 45 * @hd;
      line-height: 45 * @hd;
      text-align: center;
      border-radius: 50%;
      background: @brand-primary;
      overflow: hidden;
      .am-icon-lg {
        width: 42 * @hd;
        height: 42 * @hd;
        position: relative;
        bottom: -7 * @hd;
        vertical-align: bottom;
        color: @color-text-base-inverse;
      }
    }
    .am-avatar {
      width: 45 * @hd;
      height: 45 * @hd;
      vertical-align: middle;
    }
    &-right {
      position: absolute;
      top: 7 * @hd;
      left: 60 * @hd;
      right: 15 * @hd;
      height: 45 * @hd;
      color: @color-text-paragraph;
      box-sizing: border-box;
      word-break: break-all;
      &-top {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        padding-top: 3 * @hd;
        padding-bottom: 8 * @hd;
      }
      &-bottom {
        color: @color-text-caption;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }
    &-time {
      position: absolute;
      top: 10 * @hd;
      right: 15 * @hd;
      color: @color-text-caption;
    }
  }
  &-nodata {
    .am-result {
      border: none;
      padding-top: 45%;
      .am-icon-no-data {
        color: @color-text-caption;
        width: 60 * @hd;
        height: 60 * @hd;
      }
    }
  }
  &-loading {
    padding-top: 30 * @hd;
    .am-activity-indicator {
      justify-content: center;
    }
  }
  &-loadingNext {
    padding-top: 3 * @hd;
    .am-activity-indicator {
      justify-content: center;
    }
  }
  &-relatedGroup {
    color: @color-text-paragraph;
    background-color: @fill-grey;
    border-bottom: @border-width-sm solid @border-color-base;
    &-add {
      background-color: @fill-base;
      height: 56 * @hd;
      line-height: 56 * @hd;
      font-size: @font-size-caption;
      border-bottom: @border-width-sm solid @border-color-base;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      padding-right: 10 * @hd;
      &-content {
        vertical-align: middle;
      }
      .am-icon-plus {
        position: relative;
        top: 1 * @hd;
        width: 16 * @hd;
        height: 16 * @hd;
        color: @color-link;
        padding: 0 20 * @hd;
      }
    }
    &-title {
      height: 60 * @hd;
      line-height: 60 * @hd;
      padding-left: 15 * @hd;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      color: @color-text-caption;
    }
    &-list {
      top: 112 * @hd;
      overflow: hidden;
      overflow-y: scroll;
      -webkit-overflow-scrolling: touch;
      background: transparent;
    }
  }
}
.wm-edc-share {
  .wm-share-chat-list {
    top: 80px;
    .am-list-line {
      border-bottom: 1px solid #eee;
    }
  }
  .wm-share-latest {
    background: #f7f7f8;
    height: 34px;
    line-height: 34px;
  }
  .top-line {
    height: 10px;
    background: #f7f7f8;
  }

  .wm-browser-hrm {
    .am-list-item.am-list-item-middle .am-list-line {
      border-bottom: 1px solid #eee;
    }
  }

  .wm-share-chat-item {
    .am-list-line {
      border-bottom: 1px solid #eee;
    }
  }
}
.show-detail-memeber {
  position: relative;
  display: inline-block;
  width: 68px;
  text-align: center;
  padding-top: 2px;
  height: 14px;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  color: #534d4d;
  border: 1px solid #eee;
  border-bottom: 0px;
  top: 7px;
  left: 20px;

  i {
    display: inline-block;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #000;
    border-top: 6px solid transparent;
    position: absolute;
    top: -1px;
    left: 27px;
  }
}
.btn-box {
  display: inline-block;
  position: fixed;
  bottom: 108px;
  width: 100%;
  height: 25px;
  background-color: #fff;
}
.detail-memeber {
  position: fixed;
  top: 200px;
  bottom: 45px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  transition: all .15s;
  overflow: hidden;
  &>.space {
    height: 5px;
    background-color: #eee;
  }
  ul {
    flex-direction: column;
    height: calc(~'100% - 5px');
    margin: 0;
    padding-left: 15px;
    position: relative;
    z-index: 11;
    background: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    li {
      display: flex;
      width: 100%;
      align-items: center;
      border-bottom: 1px solid #ddd;
      padding: 8px 0;
      .am-avatar {
        width: 45px;
        height: 45px;
        margin-right: 8px;
      }
      .person-info {
        flex: 1;
        display: flex;
        height: 45px;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
        .person-name {
          width: 100%;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
        .person-department {
          margin-top: 6px;
          font-size: 12px;
          color: #868686;
        }
        .group-size {
          margin-top: 6px;
          font-size: 12px;
          color: #868686;
        }
      }
      .am-icon-cross {
        padding: 5px;
        margin-right: 10px;
      }
    }
  }
}
.detail-member-masker {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 45px;
  background-color: #000;
  opacity: 0;
  z-index: -1;
  transition: all .15s ;
}
.show-detail-member-masker {
  opacity: .4;
  z-index: 10;
  transition: all .15s ;
}
.hide-detail-memeber {
  top: calc(~'100% - 44px');
  overflow: hidden;
  z-index: -1;
}
.footer {
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 100%;
  background: #fff;
  z-index: 999;
  .show-add-memeber {
    width: 100%;
    overflow: hidden;
    height: 62px;
    border-top: 1px solid #eee;
  }
  .hide-add-memeber {
    display: none;
  }
    ul{
      list-style: none;
      display: flex;
      margin: 0;
      padding: 0;
      width: calc(~'100% - 15px');
      padding-left: 15px;
      overflow: scroll;
      overflow-y: hidden;
      -webkit-overflow-scrolling: auto;
      white-space: nowrap;
      li {
        width: 45px;
        height: 45px;
        margin-right: 5px;
        padding: 8px 0;
        min-height: 45px;
        min-width: 45px;
        .am-avatar {
          width: 45px;
          height: 45px;
          
        }
      }
    }
    ul ::-webkit-scrollbar {
      display: none;
    }
  .footer-opt {
     display: flex;
     border-top: 1px solid #eee;
     position: relative;
     z-index: 11;
  }
  .whether-send-form {
    flex: 1;
  }
  .share-btn {
    width: 50vw;
    height: 44px;
    line-height: 44px;
    text-align: center;
    border: none;
  }
  .share-btn-only {
    width: 100%;
  }
  .clear {
    background-color: #f7f7f7;
    color: #333;
  }
  .submit {
    background: #55b1f9;
    color: #fff;
  }
}
.wm-share-chat-list .am-list-item .am-list-thumb {
    margin-right: 0;
  }
  .wm-share-list .am-avatar {
    width: 45px;
    height: 45px;
    margin-right: 8px;
  }
  .wm-share-list {
    display: flex;
    align-items: center;
    justify-content: start;
    border-bottom: none;
    margin-left: 10px;
    padding: 0;
  }
  .wm-share-list-right {
    position: relative;
    top:0;
    right: 0;
    left: 0;
    color: #000;
    display: flex;
    flex-direction: column;
    height: 45px;
    justify-content: center;
    flex: 1;
    .person-name {
      font-size: 14px;
      line-height: 14px;
      width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .group-size,
    .person-department {
      font-size: 12px;
      line-height: 13px;
      color: #868686;
      margin-top: 6px;
    }
  }
.wm-share-group {
  .am-list {
    .am-list-body {
      border: 0px;
      .list-view-section-body {
        border-bottom: 1px solid #ddd;
      }
      
      .am-list-thumb {
        margin-right: 10px;
        .am-checkbox {
          height: 60px;
          .am-checkbox-inner {
            top: 16px;
          }
        }
      }
    }

    .am-list-line {
      border: 0px;
      .am-list-content {
        .wm-share-list {
          margin-left: 0px;

          .wm-share-list-right {
            height: 35px;
            display: flex;
            justify-content: center;

            .wm-share-list-right-top {
              padding: 0;
              line-height: 14px;
            }
            .wm-share-list-right-bottom {
              font-size: 12px;
              line-height: 13px;
              margin-top: 6px;
              color: #868686;
            }
          }
        }
      }
    }
  }
}
.group-footer {
  position: absolute;
  bottom: 0;
  height: 40px;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  .select-count {
    flex: 3 1 0%;
    height: 100%;
    line-height: 40px;
    padding-left: 5px;
    border: 1px solid #eee;
    color: #868686;
  }
  .clear {
    flex: 1 1 0%;
    height: 100%;
    text-align: center;
    line-height: 40px;
    background: #f7f7f7;
    border-top: 1px solid #eee;
  }
  .sure {
    flex: 1 1 0%;
    background: #55b1f9;
    color: #fff;
    height: 100%;
    text-align: center;
    line-height: 40px;
  }
}  
.wea-edc-group-list {
  bottom: 40px;
}
.wea-edc-share-back {
  .wm-share-chat-list {
    margin-top: 33px;
  }
}